package com.wd.util;

import java.io.File;
import java.io.FileFilter;

/**
 *@date  : 2012-9-24, 15:25:55
 *@author: long
 * @email :108232706@qq.com
 * @description: MyFileFilter类
 */
public class MyFileFilter implements FileFilter {

    private final boolean recursive;

    public MyFileFilter(boolean _recursive) {
        this.recursive = _recursive;
    }

    public boolean accept(File file) {
        return ((this.recursive) && (file.isDirectory()))
                || (file.getName().endsWith(".class"));
    }
}
